ABC150 C - Count Order
提出
code: python
import itertools
n = int(input())
p = list(map(int, input().split()))
q = list(map(int, input().split()))
nums_perm = list(itertools.permutations(nums))
print(abs(nums_perm.index(tuple(p)) - abs(nums_perm.index(tuple(q)))))
テーマ